package com.eleven.trades.utils;

import java.text.DateFormat;
import java.util.Date;
import java.util.Locale;

/**
 * ClassName: DateUtil <br/>
 * Description: <br/>
 * date: 2021/7/14 10:06<br/>
 *
 * @author sparks<br />
 */
public class DateUtil {
    public static String format(Date date){
        DateFormat d = DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.CHINA);
        DateFormat t = DateFormat.getTimeInstance(DateFormat.MEDIUM, Locale.CHINA);
        return d.format(date)+" "+t.format(date);
    }
}
